package com.practice.springboot_01_zwj.controller;

import com.practice.springboot_01_zwj.entity.DoubleFive;
import com.practice.springboot_01_zwj.service.DoubleFiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/doubleFive")
public class DoubleFiveController {

    @Autowired
    private DoubleFiveService doubleFiveService;
    @RequestMapping("/selectAll")
    public List<DoubleFive> selectAll(){
        return doubleFiveService.selectDoubleFiveAll();
    }
}
